package shell.listener;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;
/**@author Rafael Rocha*/
public class ExitListener implements ActionListener{

	private JFrame window;
	
	public ExitListener(JFrame window) {
		this.window = window;
	}
	@Override
	public void actionPerformed(ActionEvent arg0) {
		window.dispose();
		System.exit(0);
	}
	
}
